from sqlalchemy import Column, Integer, Boolean

from app.models.base import BaseModel


class ShopCart(BaseModel):
    __tablename__ = "shop_cart"
    __table_args__ = {"comment": "购物车"}

    id = Column(Integer, primary_key=True, autoincrement=True, comment="购物车id")
    goods_id = Column(Integer, comment="商品id")
    goods_sku_id = Column(Integer, comment="skuId")
    goods_num = Column(Integer, comment="商品数量")
    user_id = Column(Integer, comment="用户id")
    is_delete = Column(Boolean, comment="是否删除0-否1-是")
    store_id = Column(Integer, comment="店铺id")
 